package com.mingqijia.gassafety.db.entity.auth;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 字典数据实体数据项
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年01月20日 15:58
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_gss_dictionary", schema = "mingqijia_gas_common_db")
public final class DictionaryItemEntry extends BaseEntry {
    /** 字典编码 */
    @TableField("dict_code")
    private String dictCode;

    /** 显示名称 */
    @OperateLogFiled(name = "字典名称", dict = "alias")
    @TableField private String alias;

    /** 字典取值 */
    @OperateLogFiled(name = "类型", dict = "value")
    @TableField private String value;

    /** 取值排序 取值越大排名越前*/
    @TableField private Integer ordinal;

    /** 描述信息 */
    @TableField private String description;

    /** 扩展字段1 */
    @TableField private String companyName;

    /** 扩展字段2 */
    @TableField private String ext2;
}
